package avicit.im.lantop.basic.archiveclassmanager.action.rest;


import avicit.im.lantop.basic.archiveclassmanager.action.service.BillDefineManagerIntfsService;
import avicit.platform6.core.rest.msg.ResponseMsg;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@Api(tags = "BillDefineManagerIntfsService", description = "BillDefineManagerIntfsServiceRest")
@RequestMapping("/api/BillDefineManagerIntfsService/BillDefineManagerIntfsServiceRest")
public class BillDefineManagerIntfsServiceRest {


    private static final Logger LOGGER = LoggerFactory.getLogger(BillDefineManagerIntfsServiceRest.class);


    @Autowired(required = true)
    private BillDefineManagerIntfsService billDefineManagerIntfsService;


    /**
     * 根据表ID以及查询条件，获取表的列信息以及数据
     * @param map
     * @return
     */
    @PostMapping("/getTableFieldsAndDatasBySearchByOrderbyByIntfs")
    @ApiOperation(value = "根据表ID以及查询条件，获取表的列信息以及数据")
    public ResponseMsg<List<Map<String, Object>>> getTableFieldsAndDatasBySearchByOrderbyByIntfs(@ApiParam(value = "根据表ID以及查询条件，获取表的列信息以及数据", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        List<Map<String, Object>> tableFieldsAndDatasBySearchByOrderbyByIntfs = null;
        try {
            String orgId = (String) map.get("orgId");
            String deptId = (String) map.get("deptId");
            String sysId = (String) map.get("sysId");
            String tableId = (String) map.get("tableId");
            String s = (String) map.get("s");
            String s1 = (String) map.get("s1");
            String nodeId = (String) map.get("nodeId");
            Map<String,Object> listParam = (Map<String, Object>) map.get("listParam");
            tableFieldsAndDatasBySearchByOrderbyByIntfs = billDefineManagerIntfsService.getTableFieldsAndDatasBySearchByOrderbyByIntfs(orgId, deptId, sysId, tableId, "1", "100",
                    " AND NODE_ID = '" + nodeId + "'", listParam);
            responseMsg.setResponseBody(tableFieldsAndDatasBySearchByOrderbyByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;

    }

    /**
     * 获取字段通用代码数据
     * @param map
     * @return
     */
    @PostMapping("/getBillLookUpCodeByIntfs")
    @ApiOperation(value = "获取字段通用代码数据")
    public ResponseMsg<Map<String, Map<String, String>>> getBillLookUpCodeByIntfs(@ApiParam(value = "获取字段通用代码数据", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<Map<String, Map<String, String>>> responseMsg = new ResponseMsg<>();
        Map<String, Map<String, String>> billLookUpCodeByIntfs = null;
        try {
            String orgId = (String) map.get("orgId");
            String deptId = (String) map.get("deptId");
            String sysId = (String) map.get("sysId");
            String tableId = (String) map.get("tableId");
            Map<String, Object> lookUpMap = (Map<String, Object>) map.get("lookUpMap");
            billLookUpCodeByIntfs = billDefineManagerIntfsService.getBillLookUpCodeByIntfs(orgId, deptId, sysId, tableId, "", "3", lookUpMap);
            responseMsg.setResponseBody(billLookUpCodeByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;

    }


    /**
     * 根据数据ID，获取编辑或详细，字段和数据
     * @param map
     * @return
     */
    @PostMapping("/getEditOrDetailFieldsAndDataByIntfsItera")
    @ApiOperation(value = "根据数据ID，获取编辑或详细，字段和数据")
    public ResponseMsg<List<Map<String, Object>>> getEditOrDetailFieldsAndDataByIntfsItera(@ApiParam(value = "根据数据ID，获取编辑或详细，字段和数据", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        List<Map<String, Object>> editOrDetailFieldsAndDataByIntfsItera = null;
        try {
            String orgId = (String) map.get("orgId");
            String deptId = (String) map.get("deptId");
            String sysId = (String) map.get("sysId");
            String tableId = (String) map.get("tableId");
            Map<String, Object> editMap = (Map<String, Object>) map.get("editMap");
            editOrDetailFieldsAndDataByIntfsItera = billDefineManagerIntfsService.getEditOrDetailFieldsAndDataByIntfsItera(orgId, deptId, sysId, tableId, "", "3", editMap);
            responseMsg.setResponseBody(editOrDetailFieldsAndDataByIntfsItera);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;

    }


    /**
     * 根据数据ID，获取编辑或详细，字段和数据
     * @param map
     * @return
     */
    @PostMapping("/getEditOrDetailFieldsAndDataByIntfs")
    @ApiOperation(value = "根据数据ID，获取编辑或详细，字段和数据")
    public ResponseMsg<List<Map<String, Object>>> getEditOrDetailFieldsAndDataByIntfs(@ApiParam(value = "根据数据ID，获取编辑或详细，字段和数据", name = "map") @RequestBody Map<String,Object> map) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        List<Map<String, Object>> editOrDetailFieldsAndDataByIntfs = null;
        try {
            String orgId = (String) map.get("orgId");
            String deptId = (String) map.get("deptId");
            String sysId = (String) map.get("sysId");
            String tableId = (String) map.get("tableId");
            Map<String, Object> editMap = (Map<String, Object>) map.get("editMap");
            editOrDetailFieldsAndDataByIntfs = billDefineManagerIntfsService.getEditOrDetailFieldsAndDataByIntfs(orgId, deptId, sysId, tableId, "", "3", editMap);
            responseMsg.setResponseBody(editOrDetailFieldsAndDataByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setRetCode("201");
            responseMsg.setErrorDesc(e.getMessage());
            e.printStackTrace();
        }
        return responseMsg;

    }





    /**
     *获取分类检索分页总条数 zms
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getTableFieldsAndDatasBySearchByOrderbyByIntfsCount/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getTableFieldsAndDatasBySearchByOrderbyByIntfsCount(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String currentOrgId = (String) resMapsRb.get("currentOrgId");
            String currentDeptId = (String) resMapsRb.get("currentDeptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String pageNo = (String) resMapsRb.get("pageNo");
            String pageSize = (String) resMapsRb.get("pageSize");
            String toString = (String) resMapsRb.get("toString");
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            String getTableFieldsAndDatasBySearchByOrderbyByIntfsCount = billDefineManagerIntfsService.getTableFieldsAndDatasBySearchByOrderbyByIntfsCount(currentOrgId,currentDeptId,sysId,tableId,pageNo,pageSize,toString,param);
            responseMsg.setResponseBody(getTableFieldsAndDatasBySearchByOrderbyByIntfsCount);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据SQL查询所需要的数据（纯动态表,公共字段列带分页，供列表显示）
     *
     * @author 朱锋
     * @param resMapsRb
     *            （目前是空，备用参数集合）
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getTableFieldsAndDatasBySqlByDtByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getTableFieldsAndDatasBySqlByDtByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String sql = (String) resMapsRb.get("sql");
            String pageNo = (String) resMapsRb.get("pageNo");
            String pageSize = (String) resMapsRb.get("pageSize");
            String sysId = (String) resMapsRb.get("sysId");
            List<String> allListColName = (List<String>) resMapsRb.get("allListColName");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String flag = (String) resMapsRb.get("flag");
            Map<String, Object> paramMap = (Map<String, Object>) resMapsRb.get("paramMap");
            List<Map<String, Object>> getTableFieldsAndDatasBySqlByDtByIntfs = billDefineManagerIntfsService.getTableFieldsAndDatasBySqlByDtByIntfs(sql,pageNo,pageSize,sysId,allListColName,orgId,deptId,flag,paramMap);
            responseMsg.setResponseBody(getTableFieldsAndDatasBySqlByDtByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * @Title: getTableFieldsAndDatasBySearchByOrderbyByIntfsItera
     * @Description: 档案类型使用此方法
     * @param resMapsRb
     * @return
     * @throws Exception
     * @return List<Map<String,Object>>
     * @throws
     * @author huangjian
     */
    @PostMapping("/getTableFieldsAndDatasBySearchByOrderbyByIntfsItera/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getTableFieldsAndDatasBySearchByOrderbyByIntfsItera(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String pageNo = (String) resMapsRb.get("pageNo");
            String pageSize = (String) resMapsRb.get("pageSize");
            String serachCondition = (String) resMapsRb.get("serachCondition");
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            List<Map<String, Object>> getTableFieldsAndDatasBySearchByOrderbyByIntfsItera = billDefineManagerIntfsService.getTableFieldsAndDatasBySearchByOrderbyByIntfsItera(orgId,deptId,sysId,tableId,pageNo,pageSize,serachCondition,param);
            responseMsg.setResponseBody(getTableFieldsAndDatasBySearchByOrderbyByIntfsItera);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据固定表集合，动态表ID及查询条件， 获取2层表结构（父-子）的列信息以及数据
     *
     * @author 朱锋
     * @param resMapsRb
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getTableFieldsAndDatasByTabColListAndTableIdByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getTableFieldsAndDatasByTabColListAndTableIdByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            List<Map<String, Object>> tabColnumsList = (List<Map<String, Object>>) resMapsRb.get("tabColnumsList");
            String tableId = (String) resMapsRb.get("tableId");
            String pageNo = (String) resMapsRb.get("pageNo");
            String pageSize = (String) resMapsRb.get("pageSize");
            List<Map<String, Object>> serachMapFroT1List = (List<Map<String, Object>>) resMapsRb.get("serachMapFroT1List");
            Map<String, Object> serachMapFroT2 = (Map<String, Object>) resMapsRb.get("serachMapFroT2");
            Map<String, String> leftJoinOnCondition = (Map<String, String>) resMapsRb.get("leftJoinOnCondition");
            List<Map<String, Object>> getTableFieldsAndDatasByTabColListAndTableIdByIntfs = billDefineManagerIntfsService.getTableFieldsAndDatasByTabColListAndTableIdByIntfs(orgId,deptId,sysId,tabColnumsList,tableId,pageNo,pageSize,serachMapFroT1List,serachMapFroT2,leftJoinOnCondition);
            responseMsg.setResponseBody(getTableFieldsAndDatasByTabColListAndTableIdByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据表IDS(以英文分号分开,顺序为：父;子)及查询条件， 获取2层表结构（父-子）的列信息以及数据
     *
     * @author 朱锋
     * @param resMapsRb
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getTableFieldsAndDatasByTwoTablesByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getTableFieldsAndDatasByTwoTablesByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableIds = (String) resMapsRb.get("tableIds");
            String pageNo = (String) resMapsRb.get("pageNo");
            String pageSize = (String) resMapsRb.get("pageSize");
            Map<String, Object> serachMapFroT1 = (Map<String, Object>) resMapsRb.get("serachMapFroT1");
            Map<String, Object> serachMapFroT2 = (Map<String, Object>) resMapsRb.get("serachMapFroT2");
            List<Map<String, Object>> getTableFieldsAndDatasByTwoTablesByIntfs = billDefineManagerIntfsService.getTableFieldsAndDatasByTwoTablesByIntfs(orgId,deptId,sysId,tableIds,pageNo,pageSize,serachMapFroT1,serachMapFroT2);
            responseMsg.setResponseBody(getTableFieldsAndDatasByTwoTablesByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 主子表批量插入关系数据
     *
     * @author 钟一华
     * @param resMapsRb
     * @throws Exception
     *             void
     */
    @PostMapping("/insertMainChildDatasByBatchByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg insertMainChildDatasByBatchByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            String childTableId = (String) resMapsRb.get("childTableId");
            List<Map<String, Object>> mainObjList = (List<Map<String, Object>>) resMapsRb.get("mainObjList");
            List<Map<String, Object>> childObjList = (List<Map<String, Object>>) resMapsRb.get("childObjList");
            billDefineManagerIntfsService.insertMainChildDatasByBatchByIntfs(orgId,deptId,sysId,nodeId,tableId,childTableId,mainObjList,childObjList);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据表ID以及查询条件，获取表的列信息以及数据（不转换任何数据，纯数据库数据）
     *
     * @author 朱锋
     * @param resMapsRb
     *            (统一改变的值，字符串类型)
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getTableFieldsAndDatasBySearchByNoChangeByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getTableFieldsAndDatasBySearchByNoChangeByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String pageNo = (String) resMapsRb.get("pageNo");
            String pageSize = (String) resMapsRb.get("pageSize");
            String serachCondition = (String) resMapsRb.get("serachCondition");
            Map<String, Object> changeMap = (Map<String, Object>) resMapsRb.get("changeMap");
            List<Map<String, Object>> getTableFieldsAndDatasBySearchByNoChangeByIntfs = billDefineManagerIntfsService.getTableFieldsAndDatasBySearchByNoChangeByIntfs(orgId,deptId,sysId,tableId,pageNo,pageSize,serachCondition,changeMap);
            responseMsg.setResponseBody(getTableFieldsAndDatasBySearchByNoChangeByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据表ID以及查询条件，获取表的列信息以及数据(不自动排序，自己条件排序)
     *
     * @author 朱锋
     * @param resMapsRb
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getTableFieldsAndDatasBySearchByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getTableFieldsAndDatasBySearchByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String pageNo = (String) resMapsRb.get("pageNo");
            String pageSize = (String) resMapsRb.get("pageSize");
            String serachCondition = (String) resMapsRb.get("serachCondition");
            List<Map<String, Object>> getTableFieldsAndDatasBySearchByIntfs = billDefineManagerIntfsService.getTableFieldsAndDatasBySearchByIntfs(orgId,deptId,sysId,tableId,pageNo,pageSize,serachCondition);
            responseMsg.setResponseBody(getTableFieldsAndDatasBySearchByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据IDS，批量修改业务数据（断开表间数据关系）
     *
     * @author 王旭
     * @param resMapsRb
     * @throws Exception
     *             void
     * @throws
     */
    @PostMapping("/updateDisconnectRecordByDataIdsByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg updateDisconnectRecordByDataIdsByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            String dataIds = (String) resMapsRb.get("dataIds");
            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
            billDefineManagerIntfsService.updateDisconnectRecordByDataIdsByIntfs(orgId,deptId,sysId,nodeId,tableId,dataIds,params);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /***
     * 根据IDS批量修改业务数据状态等（批量数据修改,带有反更新操作,删除文件数据时用）
     *
     * @author 郭亮
     * @param resMapsRb
     *            参数MAP[p1：key='ajDataId'，value：String非必填（案卷级数据ID）]
     * @throws Exception
     */
    @PostMapping("/updateRecordByDataIdsWithUpdateAjByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg updateRecordByDataIdsWithUpdateAjByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            Map<String, Object> mapObj = (Map<String, Object>) resMapsRb.get("mapObj");
            String dataIds = (String) resMapsRb.get("dataIds");
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            billDefineManagerIntfsService.updateRecordByDataIdsWithUpdateAjByIntfs(orgId,deptId,sysId,nodeId,tableId,mapObj,dataIds,param);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据表ID，获取公共表中所有选择弹出框信息（返回值以英文分号隔开）
     * @author 郭亮
     * @param resMapsRb
     * @return
     * @throws Exception String
     */
    @PostMapping("/getSelectDialogStringByPubByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getSelectDialogStringByPubByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String getSelectDialogStringByPubByIntfs = billDefineManagerIntfsService.getSelectDialogStringByPubByIntfs(orgId,deptId,sysId,tableId);
            responseMsg.setResponseBody(getSelectDialogStringByPubByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据CbbSQL查询所需要的数据（带分页，供列表显示）
     *
     * @author 赵晓龙 备注：编研车调用查询数据方法重写
     *            (如果为空字符串，那么不提供分页功能)
     *            (如果为空字符串，那么不提供分页功能)
     * @param resMapsRb
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getTableFieldsAndDatasByCbbSqlByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getTableFieldsAndDatasByCbbSqlByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sql = (String) resMapsRb.get("sql");
            String pageNo = (String) resMapsRb.get("pageNo");
            String pageSize = (String) resMapsRb.get("pageSize");
            String sysId = (String) resMapsRb.get("sysId");
            List<String> allListColName = (List<String>) resMapsRb.get("allListColName");
            List<String> fixColName = (List<String>) resMapsRb.get("fixColName");
            String searchSql = (String) resMapsRb.get("searchSql");
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            String otherFlag = (String) resMapsRb.get("otherFlag");
            List<Map<String, Object>> getTableFieldsAndDatasByCbbSqlByIntfs = billDefineManagerIntfsService.getTableFieldsAndDatasByCbbSqlByIntfs(orgId,deptId,sql,pageNo,pageSize,sysId,allListColName,fixColName,searchSql,param,otherFlag);
            responseMsg.setResponseBody(getTableFieldsAndDatasByCbbSqlByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据CbbSQL查询所需要的数据（带分页，供列表显示）
     *
     * @author 朱锋
     *            (如果为空字符串，那么不提供分页功能)
     *            (如果为空字符串，那么不提供分页功能)
     * @param resMapsRb
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getTableFieldsAndDatasByCbbSqlByIntfs/v2")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getTableFieldsAndDatasByCbbSqlByIntfs2(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sql = (String) resMapsRb.get("sql");
            String pageNo = (String) resMapsRb.get("pageNo");
            String pageSize = (String) resMapsRb.get("pageSize");
            String sysId = (String) resMapsRb.get("sysId");
            List<String> allListColName = (List<String>) resMapsRb.get("allListColName");
            List<String> fixColName = (List<String>) resMapsRb.get("fixColName");
            String searchSql = (String) resMapsRb.get("searchSql");
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            List<Map<String, Object>> getTableFieldsAndDatasByCbbSqlByIntfs = billDefineManagerIntfsService.getTableFieldsAndDatasByCbbSqlByIntfs(orgId,deptId,sql,pageNo,pageSize,sysId,allListColName,fixColName,searchSql,param);
            responseMsg.setResponseBody(getTableFieldsAndDatasByCbbSqlByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getEditOrDetailFieldsAndDataByIntfs/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<List<Map<String, Object>>> getEditOrDetailFieldsAndDataByIntfs(@ApiParam(value = "", name = "filevitalizationservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
//        try {
//            String orgId = (String) resMapsRb.get("orgId");
//            String deptId = (String) resMapsRb.get("deptId");
//            String sysId = (String) resMapsRb.get("sysId");
//            String tableId = (String) resMapsRb.get("tableId");
//            String dataId = (String) resMapsRb.get("dataId");
//            String flag = (String) resMapsRb.get("flag");
//            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
//            List<Map<String, Object>> getEditOrDetailFieldsAndDataByIntfs = billDefineManagerIntfsService.getEditOrDetailFieldsAndDataByIntfs(orgId,deptId,sysId,tableId,dataId,flag,params);
//            responseMsg.setResponseBody(getEditOrDetailFieldsAndDataByIntfs);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     * 根据数据ID，获取编辑或详细，字段和数据（不带参数集合）
     * @param resMapsRb
     * @return
     * @throws Exception List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getEditOrDetailFieldsAndDataByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getEditOrDetailFieldsAndDataByIntfs1(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String dataId = (String) resMapsRb.get("dataId");
            String flag = (String) resMapsRb.get("flag");
            List<Map<String, Object>> getEditOrDetailFieldsAndDataByIntfs = billDefineManagerIntfsService.getEditOrDetailFieldsAndDataByIntfs(orgId,deptId,sysId,tableId,dataId,flag);
            responseMsg.setResponseBody(getEditOrDetailFieldsAndDataByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据数据ID，获取编辑或详细，字段和数据
     * @param resMapsRb
     * @return
     * @throws Exception List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getEditOrDetailFieldsAndDataByIntfsIera/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getEditOrDetailFieldsAndDataByIntfsIera(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String dataId = (String) resMapsRb.get("dataId");
            String flag = (String) resMapsRb.get("flag");
            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
            List<Map<String, Object>> getEditOrDetailFieldsAndDataByIntfsIera = billDefineManagerIntfsService.getEditOrDetailFieldsAndDataByIntfsIera(orgId,deptId,sysId,tableId,dataId,flag,params);
            responseMsg.setResponseBody(getEditOrDetailFieldsAndDataByIntfsIera);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getEditOrDetailFieldsAndDataByIntfsItera/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<List<Map<String, Object>>> getEditOrDetailFieldsAndDataByIntfsItera(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
//        try {
//            String orgId = (String) resMapsRb.get("orgId");
//            String deptId = (String) resMapsRb.get("deptId");
//            String sysId = (String) resMapsRb.get("sysId");
//            String tableId = (String) resMapsRb.get("tableId");
//            String dataId = (String) resMapsRb.get("dataId");
//            String flag = (String) resMapsRb.get("flag");
//            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
//            List<Map<String, Object>> getEditOrDetailFieldsAndDataByIntfsItera = billDefineManagerIntfsService.getEditOrDetailFieldsAndDataByIntfsItera(orgId,deptId,sysId,tableId,dataId,flag,params);
//            responseMsg.setResponseBody(getEditOrDetailFieldsAndDataByIntfsItera);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     * 根据表ID和列名称获取列类型
     *
     * @author 王旭
     * @param resMapsRb
     * @return
     * @throws Exception
     *             String
     * @throws
     */
    @PostMapping("/getColTypeByTableIdAndColNameByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getColTypeByTableIdAndColNameByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String colName = (String) resMapsRb.get("colName");
            String getColTypeByTableIdAndColNameByIntfs = billDefineManagerIntfsService.getColTypeByTableIdAndColNameByIntfs(orgId,deptId,sysId,tableId,colName);
            responseMsg.setResponseBody(getColTypeByTableIdAndColNameByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getTableFieldsAndDatasBySearchByOrderbyByIntfs/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<List<Map<String, Object>>> getTableFieldsAndDatasBySearchByOrderbyByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
//        try {
//            String orgId = (String) resMapsRb.get("orgId");
//            String deptId = (String) resMapsRb.get("deptId");
//            String sysId = (String) resMapsRb.get("sysId");
//            String tableId = (String) resMapsRb.get("tableId");
//            String pageNo = (String) resMapsRb.get("pageNo");
//            String pageSize = (String) resMapsRb.get("pageSize");
//            String serachCondition = (String) resMapsRb.get("serachCondition");
//            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
//            List<Map<String, Object>> getTableFieldsAndDatasBySearchByOrderbyByIntfs = billDefineManagerIntfsService.getTableFieldsAndDatasBySearchByOrderbyByIntfs(orgId,deptId,sysId,tableId,pageNo,pageSize,serachCondition,param);
//            responseMsg.setResponseBody(getTableFieldsAndDatasBySearchByOrderbyByIntfs);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     * 根据SQL查询所需要的数据（带分页，供列表显示）
     *
     * @author 朱锋
     * @param resMapsRb
     *            （TABLE_ID：表ID，TABLE_FLAG：表别名）
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getTableFieldsAndDatasBySqlByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getTableFieldsAndDatasBySqlByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String sql = (String) resMapsRb.get("sql");
            String pageNo = (String) resMapsRb.get("pageNo");
            String pageSize = (String) resMapsRb.get("pageSize");
            String sysId = (String) resMapsRb.get("sysId");
            List<String> allListColName = (List<String>) resMapsRb.get("allListColName");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            Map<String, Object> tableMap = (Map<String, Object>) resMapsRb.get("tableMap");
            List<Map<String, Object>> getTableFieldsAndDatasBySqlByIntfs = billDefineManagerIntfsService.getTableFieldsAndDatasBySqlByIntfs(sql,pageNo,pageSize,sysId,allListColName,orgId,deptId,tableMap);
            responseMsg.setResponseBody(getTableFieldsAndDatasBySqlByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据表IDS(以英文分号分开,顺序为：主;子)及查询条件， 获取2层表结构（主-子）的列信息以及数据
     *
     * @author 朱锋
     * @param resMapsRb
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getTableFieldsAndDatasByTwoTrendsTablesByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getTableFieldsAndDatasByTwoTrendsTablesByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableIds = (String) resMapsRb.get("tableIds");
            String relationT1 = (String) resMapsRb.get("relationT1");
            String relationT2 = (String) resMapsRb.get("relationT2");
            String pageNo = (String) resMapsRb.get("pageNo");
            String pageSize = (String) resMapsRb.get("pageSize");
            String serachSql = (String) resMapsRb.get("serachSql");
            List<Map<String, Object>> getTableFieldsAndDatasByTwoTrendsTablesByIntfs = billDefineManagerIntfsService.getTableFieldsAndDatasByTwoTrendsTablesByIntfs(orgId,deptId,sysId,tableIds,relationT1,relationT2,pageNo,pageSize,serachSql);
            responseMsg.setResponseBody(getTableFieldsAndDatasByTwoTrendsTablesByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据配置规则，给表中数据重新插入数据
     *
     * @author 朱锋
     * @param resMapsRb
     *            void
     * @throws
     */
    @PostMapping("/insertFieldValueByConditionMapByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg insertFieldValueByConditionMapByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String sysId = (String) resMapsRb.get("sysId");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            Map<String, Object> conditionMap = (Map<String, Object>) resMapsRb.get("conditionMap");
            billDefineManagerIntfsService.insertFieldValueByConditionMapByIntfs(sysId,orgId,deptId,conditionMap);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /***
     * 根据数据ID修改业务数据状态等（单一数据修改,带有文件级反更新新案卷级操作,编辑文件数据时用）
     *
     * @author 郭亮
     * @param resMapsRb
     *            参数MAP[p1：key='ajDataId'，value：String非必填（案卷级数据ID）]
     * @throws Exception
     */
    @PostMapping("/updateRecordByDataIdWithUpdateAjByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg updateRecordByDataIdWithUpdateAjByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            Map<String, Object> mapObj = (Map<String, Object>) resMapsRb.get("mapObj");
            String dataId = (String) resMapsRb.get("dataId");
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            billDefineManagerIntfsService.updateRecordByDataIdWithUpdateAjByIntfs(orgId,deptId,sysId,nodeId,tableId,mapObj,dataId,param);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 复制/剪切的粘贴操作
     *
     * @author 钟一华
     * @param resMapsRb
     *            目标节点id
     *            源节点id
     *            源表tableid
     *            源子表tableid
     *            类型(文件file/案卷an)
     *            数据ids
     *            复制/剪切操作(copy/cut)
     *            选择项(所选/全选)
     *            组织id
     *            部门id
     * @throws Exception
     *             void
     * @throws
     */
    @PostMapping("/doPasteDatasByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg doPasteDatasByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String targetNodeId = (String) resMapsRb.get("targetNodeId");
            String sourceNodeId = (String) resMapsRb.get("sourceNodeId");
            String sourceTableId = (String) resMapsRb.get("sourceTableId");
            String sourceChildTableId = (String) resMapsRb.get("sourceChildTableId");
            String fromType = (String) resMapsRb.get("fromType");
            String dataIds = (String) resMapsRb.get("dataIds");
            String operator = (String) resMapsRb.get("operator");
            String selectType = (String) resMapsRb.get("selectType");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String loginUserId = (String) resMapsRb.get("loginUserId");
            String loginIp = (String) resMapsRb.get("loginIp");
            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
            billDefineManagerIntfsService.doPasteDatasByIntfs(targetNodeId,sourceNodeId,sourceTableId,sourceChildTableId,fromType,dataIds,operator,selectType,orgId,deptId,sysId,loginUserId,loginIp,params);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 复制/剪切时,粘贴用批量插入数据
     *
     * @author 钟一华
     * @param resMapsRb
     * @throws Exception
     *             void
     */
    @PostMapping("/insertRecordByPasteBatchByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg insertRecordByPasteBatchByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            List<Map<String, Object>> listMapObj = (List<Map<String, Object>>) resMapsRb.get("listMapObj");
            String loginUserId = (String) resMapsRb.get("loginUserId");
            String loginIp = (String) resMapsRb.get("loginIp");
            billDefineManagerIntfsService.insertRecordByPasteBatchByIntfs(orgId,deptId,sysId,nodeId,tableId,listMapObj,loginUserId,loginIp);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据数据id删除附件和mongdb数据
     *
     * @author 钟一华
     * @param resMapsRb
     * @throws Exception
     *             void
     */
    @PostMapping("/deleteAttachmentByDataIdsByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg deleteAttachmentByDataIdsByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            List<String> dataIds = (List<String>) resMapsRb.get("dataIds");
            String sysId = (String) resMapsRb.get("sysId");
            billDefineManagerIntfsService.deleteAttachmentByDataIdsByIntfs(dataIds,sysId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据IDS批量修改业务数据状态等（批量数据修改）重写
     * SanXiafiles create by zhaoxiaolong
     * @param resMapsRb
     * @throws Exception
     */
    @PostMapping("/updateRecordByDataIdsByIntfs/v2")
    @ApiOperation(value = "")
    public ResponseMsg updateRecordByDataIdsByIntfs2(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            Map<String, Object> mapObj = (Map<String, Object>) resMapsRb.get("mapObj");
            String dataIds = (String) resMapsRb.get("dataIds");
            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
            String arg1 = (String) resMapsRb.get("arg1");
            billDefineManagerIntfsService.updateRecordByDataIdsByIntfs(orgId,deptId,sysId,nodeId,tableId,mapObj,dataIds,params,arg1);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据IDS批量修改业务数据状态等（批量数据修改）
     *
     * @author 王旭
     * @param resMapsRb
     *            （列名：值）
     * @throws Exception
     *             void
     * @throws
     */
    @PostMapping("/updateRecordByDataIdsByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg updateRecordByDataIdsByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            Map<String, Object> mapObj = (Map<String, Object>) resMapsRb.get("mapObj");
            String dataIds = (String) resMapsRb.get("dataIds");
            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
            billDefineManagerIntfsService.updateRecordByDataIdsByIntfs(orgId,deptId,sysId,nodeId,tableId,mapObj,dataIds,params);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据表ID，获取所有选择弹出框信息（返回值以英文分号隔开）
     *
     * @author 王旭
     * @param resMapsRb
     * @return
     * @throws Exception
     *             String
     * @throws
     */
    @PostMapping("/getSelectDialogStringByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getSelectDialogStringByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String getSelectDialogStringByIntfs = billDefineManagerIntfsService.getSelectDialogStringByIntfs(orgId,deptId,sysId,tableId);
            responseMsg.setResponseBody(getSelectDialogStringByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 归档接口批量新增数据(带附件)
     *
     * @author 钟一华
     * @param resMapsRb
     * @throws Exception
     * @throws
     */
    @PostMapping("/insertRecordByfileBatchByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<Map<String, Object>> insertRecordByfileBatchByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Map<String, Object>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            List<Map<String, Object>> listMapObj = (List<Map<String, Object>>) resMapsRb.get("listMapObj");
            String loginUserId = (String) resMapsRb.get("loginUserId");
            String loginIp = (String) resMapsRb.get("loginIp");
            Map<String, Object> insertRecordByfileBatchByIntfs = billDefineManagerIntfsService.insertRecordByfileBatchByIntfs(orgId,deptId,sysId,nodeId,tableId,listMapObj,loginUserId,loginIp);
            responseMsg.setResponseBody(insertRecordByfileBatchByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据源条目id和新条目id复制附件信息
     *
     * @author 钟一华
     * @param resMapsRb
     * @throws Exception
     *             void
     */
    @PostMapping("/insertMongoDbAttachment/v1")
    @ApiOperation(value = "")
    public ResponseMsg insertMongoDbAttachment(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String dataId = (String) resMapsRb.get("dataId");
            String dataNewId = (String) resMapsRb.get("dataNewId");
            billDefineManagerIntfsService.insertMongoDbAttachment(dataId,dataNewId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 生成全部档号或所选档号
     *
     * @author 朱锋
     * @param resMapsRb
     *            参数MAP [p1：key='flag'，value：boolean 必填（是否全部记录，true全部，false部分）]
     *            [p2：key='recordId'，value：list<String> 非必填（部分记录ID）]
     *            [p3：key='tableId'，value：String 必填（表ID）]
     *            [p4：key='parentId'，value：String 非必填（案卷级数据ID）]
     * @throws Exception
     *             void
     * @throws
     */
    @PostMapping("/updateRecordByArchiveCodeByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg updateRecordByArchiveCodeByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            Map<String, Object> paramMap = (Map<String, Object>) resMapsRb.get("paramMap");
            billDefineManagerIntfsService.updateRecordByArchiveCodeByIntfs(orgId,deptId,sysId,paramMap);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据表ID，字段名，查询条件(SQL语句)查询
     *
     * @author 朱锋
     * @param resMapsRb
     *            （SUM：求和 MAX：求最大值 MIN：求最小值 AVG:求平均值）
     * @return
     * @throws Exception
     *             Object
     * @throws
     */
    @PostMapping("/getOperationTableColDataByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<Object> getOperationTableColDataByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Object> responseMsg = new ResponseMsg<>();
        try {
            String tableId = (String) resMapsRb.get("tableId");
            String searchSql = (String) resMapsRb.get("searchSql");
            String colName = (String) resMapsRb.get("colName");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String flag = (String) resMapsRb.get("flag");
            Object getOperationTableColDataByIntfs = billDefineManagerIntfsService.getOperationTableColDataByIntfs(tableId,searchSql,colName,orgId,deptId,sysId,flag);
            responseMsg.setResponseBody(getOperationTableColDataByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 批量修改数据(同字段,多值)
     * @param resMapsRb
     *            <key:dataMap,value:Map<String(数据ID),Map<String(字段英文名),Object(
     *            字段值)>>>
     * @throws Exception
     */
    @PostMapping("/updateRecordByBatchByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg updateRecordByBatchByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            Map<String, Object> mapParam = (Map<String, Object>) resMapsRb.get("mapParam");
            billDefineManagerIntfsService.updateRecordByBatchByIntfs(orgId,deptId,sysId,nodeId,tableId,mapParam);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据SQL单字段分组查询数据，（可分页）
     * @param resMapsRb
     * @return
     * @throws Exception List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getDataBysSqlByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getDataBysSqlByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String tableName = (String) resMapsRb.get("tableName");
            String colId = (String) resMapsRb.get("colId");
            String colName = (String) resMapsRb.get("colName");
            String sql = (String) resMapsRb.get("sql");
            String pageNo = (String) resMapsRb.get("pageNo");
            String pageSize = (String) resMapsRb.get("pageSize");
            Map<String, Object> mapParam = (Map<String, Object>) resMapsRb.get("mapParam");
            List<Map<String, Object>> getDataBysSqlByIntfs = billDefineManagerIntfsService.getDataBysSqlByIntfs(orgId,deptId,sysId,tableId,tableName,colId,colName,sql,pageNo,pageSize,mapParam);
            responseMsg.setResponseBody(getDataBysSqlByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据SQL修改数据
     *
     * @author 朱锋
     * @param resMapsRb
     * @throws Exception
     *             void
     */
    @PostMapping("/updateRecordBySqlByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg updateRecordBySqlByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String sql = (String) resMapsRb.get("sql");
            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
            billDefineManagerIntfsService.updateRecordBySqlByIntfs(orgId,deptId,sysId,sql,params);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 创建表单信息
     *
     * @author 王旭
     * @param resMapsRb
     * @throws Exception
     *             void
     * @throws
     */
    @PostMapping("/createCbbTabFormByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg createCbbTabFormByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String nodeName = (String) resMapsRb.get("nodeName");
            String tableId = (String) resMapsRb.get("tableId");
            billDefineManagerIntfsService.createCbbTabFormByIntfs(orgId,deptId,sysId,nodeId,nodeName,tableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据标识条件，获取字段信息
     *
     * @author 朱锋
     * @param resMapsRb
     *            （1-添加显示；2-列表显示；3-详细显示；4-查询显示）
     *            参数列表
     *            <ul>
     *            <li>p1 : key = "ortherMap", 非必输 ,
     *            Map类型，<兄弟表表ID(String)，兄弟表数据ID(String)>用于选择兄弟表组合项加载数据</li>
     *            <li>p2 : currentUserId（String）当前用户ID, 必输</li>
     *            <li>p3 : currentDeptId（String）当前部门ID, 必输</li>
     *            <li>p4 : currentOrgCode（String）当前组织代码, 必输</li>
     *            <li>p5 : userAuthsql（String）条件sql(其中包含用户权限sql), 非必输</li>
     *            <li>p6 : wjIds（String）文件数据ID串（组卷新增案卷时有值）, 非必输</li>
     *            <li>p7 : nodeId（String）节点ID，非必输</li>
     *            </ul>
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getFieldsByConditionByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getFieldsByConditionByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String flag = (String) resMapsRb.get("flag");
            String dataId = (String) resMapsRb.get("dataId");
            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
            List<Map<String, Object>> getFieldsByConditionByIntfs = billDefineManagerIntfsService.getFieldsByConditionByIntfs(orgId,deptId,sysId,tableId,flag,dataId,params);
            responseMsg.setResponseBody(getFieldsByConditionByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 添加业务数据（后台应用配置添加）
     *
     * @author 朱锋
     * @param resMapsRb
     *            参数MAP[p1：key='tableId'，value：String必填（表ID）]
     *            [p2：key='mapObj'，value：Map<String（字段名）, Object（值）> 必填（新增值）]
     *            [p3：key='loginUserId'，value：String 必填（登陆用户ID）]
     *            [p4：key='loginIp'，value：String 必填（登陆用户IP）]
     *            [p5：key='dataId'，value：String 非必填（顺带，序列应用时所选记录的ID）]
     *            [p6：key='ortherConfigDataId'，value：String 非必填（组合项应用时兄弟表记录的ID）]
     *            [p7：key='userAuthsql'，value：String 非必填（条件sql，其中包含了用户权限sql）]
     * @return
     * @throws Exception
     *             String
     * @throws
     */
    @PostMapping("/insertRecordByConfigByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> insertRecordByConfigByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            String insertRecordByConfigByIntfs = billDefineManagerIntfsService.insertRecordByConfigByIntfs(orgId,deptId,sysId,param);
            responseMsg.setResponseBody(insertRecordByConfigByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据记录ID删除记录信息
     * @param resMapsRb
     * @throws Exception void
     * @throws
     */
    @PostMapping("/deleteRecordByDataIdByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg deleteRecordByDataIdByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            String dataId = (String) resMapsRb.get("dataId");
            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
            billDefineManagerIntfsService.deleteRecordByDataIdByIntfs(orgId,deptId,sysId,nodeId,tableId,dataId,params);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据标识条件，获取字段信息
     * 预归档，著录整理，馆藏档案调用此方法
     * @author huangjian
     * @param resMapsRb
     *            （1-添加显示；2-列表显示；3-详细显示；4-查询显示）
     *            参数列表
     *            <ul>
     *            <li>p1 : key = "ortherMap", 非必输 ,
     *            Map类型，<兄弟表表ID(String)，兄弟表数据ID(String)>用于选择兄弟表组合项加载数据</li>
     *            <li>p2 : currentUserId（String）当前用户ID, 必输</li>
     *            <li>p3 : currentDeptId（String）当前部门ID, 必输</li>
     *            <li>p4 : currentOrgCode（String）当前组织代码, 必输</li>
     *            <li>p5 : userAuthsql（String）条件sql(其中包含用户权限sql), 非必输</li>
     *            <li>p6 : wjIds（String）文件数据ID串（组卷新增案卷时有值）, 非必输</li>
     *            <li>p7 : nodeId（String）节点ID，非必输</li>
     *            </ul>
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getFieldsByConditionByIntfsItera/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getFieldsByConditionByIntfsItera(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String flag = (String) resMapsRb.get("flag");
            String dataId = (String) resMapsRb.get("dataId");
            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
            List<Map<String, Object>> getFieldsByConditionByIntfsItera = billDefineManagerIntfsService.getFieldsByConditionByIntfsItera(orgId,deptId,sysId,tableId,flag,dataId,params);
            responseMsg.setResponseBody(getFieldsByConditionByIntfsItera);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据数据ID修改业务数据状态等（单一数据修改）
     *
     * @author 王旭
     * @param resMapsRb
     *            （列名：值）
     * @throws Exception
     *             void
     * @throws
     */
    @PostMapping("/updateRecordByDataIdByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg updateRecordByDataIdByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            Map<String, Object> mapObj = (Map<String, Object>) resMapsRb.get("mapObj");
            String dataId = (String) resMapsRb.get("dataId");
            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
            billDefineManagerIntfsService.updateRecordByDataIdByIntfs(orgId,deptId,sysId,nodeId,tableId,mapObj,dataId,params);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据IDS，批量修改业务数据（建立案卷级和文件级数据关系）
     *
     * @author 王旭
     * @param resMapsRb
     * @throws Exception
     *             void
     * @throws
     */
    @PostMapping("/updateRecordByAjjDataIdByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg updateRecordByAjjDataIdByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String ajjDataId = (String) resMapsRb.get("ajjDataId");
            String wjjDataIds = (String) resMapsRb.get("wjjDataIds");
            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
            billDefineManagerIntfsService.updateRecordByAjjDataIdByIntfs(orgId,deptId,sysId,nodeId,ajjDataId,wjjDataIds,params);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据记录IDS批量删除记录信息
     *
     * @author 王旭
     * @param resMapsRb
     * @throws Exception
     *             void
     * @throws
     */
    @PostMapping("/deleteRecordByDataIdsByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg deleteRecordByDataIdsByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            String dataIds = (String) resMapsRb.get("dataIds");
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            billDefineManagerIntfsService.deleteRecordByDataIdsByIntfs(orgId,deptId,sysId,nodeId,tableId,dataIds,param);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 获取表单所有业务数据
     *
     * @author 王旭
     * @param resMapsRb
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getFormDatasByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getFormDatasByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            List<Map<String, Object>> getFormDatasByIntfs = billDefineManagerIntfsService.getFormDatasByIntfs(orgId,deptId,sysId,nodeId,tableId);
            responseMsg.setResponseBody(getFormDatasByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据业务状态等获取业务数据
     *
     * @author 王旭
     * @param resMapsRb
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getFormDatasByStatusByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getFormDatasByStatusByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            Map<String, Object> mapObj = (Map<String, Object>) resMapsRb.get("mapObj");
            List<Map<String, Object>> getFormDatasByStatusByIntfs = billDefineManagerIntfsService.getFormDatasByStatusByIntfs(orgId,deptId,sysId,nodeId,tableId,mapObj);
            responseMsg.setResponseBody(getFormDatasByStatusByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 添加业务数据
     *
     * @author 王旭
     * @param resMapsRb
     * @throws Exception
     *             String （记录ID）
     * @throws
     */
    @PostMapping("/insertRecordByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> insertRecordByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            Map<String, Object> mapObj = (Map<String, Object>) resMapsRb.get("mapObj");
            String loginUserId = (String) resMapsRb.get("loginUserId");
            String loginIp = (String) resMapsRb.get("loginIp");
            String insertRecordByIntfs = billDefineManagerIntfsService.insertRecordByIntfs(orgId,deptId,sysId,nodeId,tableId,mapObj,loginUserId,loginIp);
            responseMsg.setResponseBody(insertRecordByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




//    /**
//     *
//     * @param resMapsRb
//     * @return
//     */
//    @PostMapping("/getBillLookUpCodeByIntfs/v1")
//    @ApiOperation(value = "")
//    public ResponseMsg<Map<String, Map<String, String>>> getBillLookUpCodeByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
//        ResponseMsg<Map<String, Map<String, String>>> responseMsg = new ResponseMsg<>();
//        try {
//            String orgId = (String) resMapsRb.get("orgId");
//            String deptId = (String) resMapsRb.get("deptId");
//            String sysId = (String) resMapsRb.get("sysId");
//            String tableId = (String) resMapsRb.get("tableId");
//            String dataId = (String) resMapsRb.get("dataId");
//            String flag = (String) resMapsRb.get("flag");
//            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
//            Map<String, Map<String, String>> getBillLookUpCodeByIntfs = billDefineManagerIntfsService.getBillLookUpCodeByIntfs(orgId,deptId,sysId,tableId,dataId,flag,params);
//            responseMsg.setResponseBody(getBillLookUpCodeByIntfs);
//            responseMsg.setRetCode("200");
//        } catch (Exception e) {
//            responseMsg.setErrorDesc(e.getMessage());
//            responseMsg.setRetCode("201");
//            e.printStackTrace();
//        }
//        return responseMsg;
//    }




    /**
     * 根据表ID，获取字段通用代码数据(不带参数集合)
     *
     * @author 朱锋
     * @param resMapsRb
     *            (如果查询不带数据的记录，那么该参数为空字符串)
     *            (1-是否添加或编辑显示 2-是否列表显示 3-是否详细显示 4-是否查询显示 0-全部字段显示)
     * @return
     * @throws Exception
     *             Map<String,Map<String,String>>
     * @throws
     */
    @PostMapping("/getBillLookUpCodeByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<Map<String, Map<String, String>>> getBillLookUpCodeByIntfs1(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Map<String, Map<String, String>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String dataId = (String) resMapsRb.get("dataId");
            String flag = (String) resMapsRb.get("flag");
            Map<String, Map<String, String>> getBillLookUpCodeByIntfs = billDefineManagerIntfsService.getBillLookUpCodeByIntfs(orgId,deptId,sysId,tableId,dataId,flag);
            responseMsg.setResponseBody(getBillLookUpCodeByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 添加业务数据（批量）
     *
     * @author 王旭
     * @param resMapsRb
     *            参数map[p1：key='wjIds'，value：String非必填（文件数据ID，组卷时有值）]
     *             [p2：key='dataId'，value：String非必填（数据ID，顺带时有值）]
     * @throws Exception
     * @throws
     */
    @PostMapping("/insertRecordByBatchByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> insertRecordByBatchByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            List<Map<String, Object>> listMapObj = (List<Map<String, Object>>) resMapsRb.get("listMapObj");
            String loginUserId = (String) resMapsRb.get("loginUserId");
            String loginIp = (String) resMapsRb.get("loginIp");
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            String insertRecordByBatchByIntfs = billDefineManagerIntfsService.insertRecordByBatchByIntfs(orgId,deptId,sysId,nodeId,tableId,listMapObj,loginUserId,loginIp,param);
            responseMsg.setResponseBody(insertRecordByBatchByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据数据ID，获取业务数据
     *
     * @author 王旭
     * @param resMapsRb
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getFormSingleDataByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getFormSingleDataByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            String dataId = (String) resMapsRb.get("dataId");
            List<Map<String, Object>> getFormSingleDataByIntfs = billDefineManagerIntfsService.getFormSingleDataByIntfs(orgId,deptId,sysId,nodeId,tableId,dataId);
            responseMsg.setResponseBody(getFormSingleDataByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据表ID，获取表的列信息以及数据
     *
     * @author 王旭
     * @param resMapsRb
     * @return
     * @throws Exception
     *             List<Map<String,Object>>
     * @throws
     */
    @PostMapping("/getTableFieldsAndDatasByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getTableFieldsAndDatasByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String pageNo = (String) resMapsRb.get("pageNo");
            String pageSize = (String) resMapsRb.get("pageSize");
            Map<String, Object> serachMap = (Map<String, Object>) resMapsRb.get("serachMap");
            List<Map<String, Object>> getTableFieldsAndDatasByIntfs = billDefineManagerIntfsService.getTableFieldsAndDatasByIntfs(orgId,deptId,sysId,tableId,pageNo,pageSize,serachMap);
            responseMsg.setResponseBody(getTableFieldsAndDatasByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据NODE_ID 判断是否为档案类型数据
     * @param resMapsRb
     * @return String
     * @throws
     */
    @PostMapping("/getArchiveTypeByNodeIdAndTableId/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getArchiveTypeByNodeIdAndTableId(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            String getArchiveTypeByNodeIdAndTableId = billDefineManagerIntfsService.getArchiveTypeByNodeIdAndTableId(orgId,sysId,nodeId,tableId);
            responseMsg.setResponseBody(getArchiveTypeByNodeIdAndTableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据表ID，获取所有选择弹出框信息（返回值以英文分号隔开）
     * @param resMapsRb
     * @return
     * @throws Exception
     *             String
     * @throws
     */
    @PostMapping("/getSelectDialogStringByIntfs1/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getSelectDialogStringByIntfs1(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String getSelectDialogStringByIntfs1 = billDefineManagerIntfsService.getSelectDialogStringByIntfs1(orgId,deptId,sysId,tableId);
            responseMsg.setResponseBody(getSelectDialogStringByIntfs1);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 更新起止日期方法抽离
     * SanXiaFiles create by zhaoxiaolong
     * @param resMapsRb
     */
    @PostMapping("/UpdateQzrqByAnIdAndAnTableId/v1")
    @ApiOperation(value = "")
    public ResponseMsg UpdateQzrqByAnIdAndAnTableId(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String anId = (String) resMapsRb.get("anId");
            String anTableId = (String) resMapsRb.get("anTableId");
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            billDefineManagerIntfsService.UpdateQzrqByAnIdAndAnTableId(anId,anTableId,param);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 变更案卷页数
     */
    @PostMapping("/UpdateYsByAnIdAndAnTableId/v1")
    @ApiOperation(value = "")
    public ResponseMsg UpdateYsByAnIdAndAnTableId(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String anId = (String) resMapsRb.get("anId");
            String tgtAnTableId = (String) resMapsRb.get("tgtAnTableId");
            String fileIds = (String) resMapsRb.get("fileIds");
            String tgtFileTableId = (String) resMapsRb.get("tgtFileTableId");
            String orgId = (String) resMapsRb.get("orgId");
            String nodeId = (String) resMapsRb.get("nodeId");
            billDefineManagerIntfsService.UpdateYsByAnIdAndAnTableId(anId,tgtAnTableId,fileIds,tgtFileTableId,orgId,nodeId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /***
     * 根据文件级数据更新案卷级数据（统计生成应用）
     *
     * @author 郭亮
     * @param resMapsRb
     *            当前操作表ID（必填）
     *            案卷级表ID （必填）
     *            案卷级数据记录ID （非必填）
     *            文件数据ID串，组卷操作时有值
     * @throws Exception
     */
    @PostMapping("/updateAjDataByWjdataByInfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg updateAjDataByWjdataByInfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String tableId = (String) resMapsRb.get("tableId");
            String ajDataId = (String) resMapsRb.get("ajDataId");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String wjIds = (String) resMapsRb.get("wjIds");
            Map<String, Object> params = (Map<String, Object>) resMapsRb.get("params");
            billDefineManagerIntfsService.updateAjDataByWjdataByInfs(tableId,ajDataId,orgId,deptId,sysId,nodeId,wjIds,params);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 更新案卷件数
     * @param resMapsRb
     * @throws Exception
     */
    @PostMapping("/UpdateJsByAnIdAndAnTableId/v1")
    @ApiOperation(value = "")
    public ResponseMsg UpdateJsByAnIdAndAnTableId(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String resultId = (String) resMapsRb.get("resultId");
            String anTableId = (String) resMapsRb.get("anTableId");
            String fileTableId = (String) resMapsRb.get("fileTableId");
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            billDefineManagerIntfsService.UpdateJsByAnIdAndAnTableId(resultId,anTableId,fileTableId,orgId,deptId,sysId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 创建新条目附件关系数据
     * @param resMapsRb
     * @throws Exception void
     * @throws
     */
    @PostMapping("/createAttachmentRelationDatas/v1")
    @ApiOperation(value = "")
    public ResponseMsg createAttachmentRelationDatas(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            billDefineManagerIntfsService.createAttachmentRelationDatas(param);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据tableId、nodeId获取tabNodeId（模板文件夹NODE_ID）
     * @param resMapsRb
     * @throws Exception
     * @throws
     */
    @PostMapping("/getCbbTabModelNodeIdByNodeId/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getCbbTabModelNodeIdByNodeId(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String nodeId = (String) resMapsRb.get("nodeId");
            String getCbbTabModelNodeIdByNodeId = billDefineManagerIntfsService.getCbbTabModelNodeIdByNodeId(nodeId);
            responseMsg.setResponseBody(getCbbTabModelNodeIdByNodeId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 查询已存在盒号 SanxiaFiles create by zhangrui
     * @param resMapsRb
     * @param
     * @param
     * @return
     */
    @PostMapping("/getArchiveClassNoBySql/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getArchiveClassNoBySql(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            List<Map<String, Object>> getArchiveClassNoBySql = billDefineManagerIntfsService.getArchiveClassNoBySql(nodeId,tableId);
            responseMsg.setResponseBody(getArchiveClassNoBySql);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 生成所选数据保管号
     *
     * @author 朱锋
     * @param resMapsRb
     *            参数MAP
     *            [p1：key='recordIds'，value：list<String> 必填（记录ID）]
     *            [p2：key='tableId'，value：String 必填（表ID）]
     * @throws Exception
     *             void
     * @throws
     */
    @PostMapping("/updateBghByRecordIdByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<Boolean> updateBghByRecordIdByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Boolean> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            Map<String, Object> paramMap = (Map<String, Object>) resMapsRb.get("paramMap");
            Boolean updateBghByRecordIdByIntfs = billDefineManagerIntfsService.updateBghByRecordIdByIntfs(orgId,deptId,sysId,paramMap);
            responseMsg.setResponseBody(updateBghByRecordIdByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *根据案卷ID获取对应文件的ID和卷内序号
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getArchiveInNumAndIdByFileId/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getArchiveInNumAndIdByFileId(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String tableName = (String) resMapsRb.get("tableName");
            String anTableName = (String) resMapsRb.get("anTableName");
            String ids = (String) resMapsRb.get("ids");
            List<Map<String, Object>> getArchiveInNumAndIdByFileId = billDefineManagerIntfsService.getArchiveInNumAndIdByFileId(tableName,anTableName,ids);
            responseMsg.setResponseBody(getArchiveInNumAndIdByFileId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 删除数据方法(真删)
     * @param resMapsRb
     * 			key: condition : 需要删除的条件语句
     * 			key: level : 执行删除的层级 1 文件 2 案卷/盒
     * @throws Exception void
     * @throws
     */
    @PostMapping("/deleteDatasByParamByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg deleteDatasByParamByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            billDefineManagerIntfsService.deleteDatasByParamByIntfs(orgId,deptId,sysId,nodeId,param);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据创建时间更新卷内序号方法
     * @param resMapsRb
     * @throws Exception void
     * @throws
     */
    @PostMapping("/updateArchiveInNumByParam/v1")
    @ApiOperation(value = "")
    public ResponseMsg updateArchiveInNumByParam(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            billDefineManagerIntfsService.updateArchiveInNumByParam(param);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据tableId、nodeId获取tabNodeId（文件类型取‘个人文件’‘部门文件’节点ID作为tabNodeId）
     * @author 郭亮
     * @param resMapsRb
     * @return
     * @throws Exception List<Object>
     */
    @PostMapping("/getCbbTabNodeIdByTableId/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getCbbTabNodeIdByTableId(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String getCbbTabNodeIdByTableId = billDefineManagerIntfsService.getCbbTabNodeIdByTableId(sysId,tableId,nodeId);
            responseMsg.setResponseBody(getCbbTabNodeIdByTableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据表ID及数据ID集合获得数据对应的密级
     *
     * @author 张余
     * @param resMapsRb
     * @return
     * @throws Exception
     *             Map<String,Object>
     * @throws
     */
    @PostMapping("/getSecretLevelByIdsAndTableId/v1")
    @ApiOperation(value = "")
    public ResponseMsg<Map<String, Object>> getSecretLevelByIdsAndTableId(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Map<String, Object>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String tableId = (String) resMapsRb.get("tableId");
            String ids = (String) resMapsRb.get("ids");
            Map<String, Object> getSecretLevelByIdsAndTableId = billDefineManagerIntfsService.getSecretLevelByIdsAndTableId(orgId,deptId,sysId,tableId,ids);
            responseMsg.setResponseBody(getSecretLevelByIdsAndTableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 断号查询
     * @param resMapsRb
     * @param param key: NODE_ID(必填), TABLE_ID(必填), PARENT_ID(非必填) ...
     * @return
     * @throws Exception Map<String,Object>
     * @throws
     */
    @PostMapping("/getDisconnectNumByParamByIntfs/v1")
    @ApiOperation(value = "")
    public ResponseMsg<Map<String, Object>> getDisconnectNumByParamByIntfs(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<Map<String, Object>> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            Map<String, Object> getDisconnectNumByParamByIntfs = billDefineManagerIntfsService.getDisconnectNumByParamByIntfs(orgId,deptId,sysId,param);
            responseMsg.setResponseBody(getDisconnectNumByParamByIntfs);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 查询已存在盒号 SanxiaFiles create by zhangrui
     * @param
     * @param
     * @param
     * @return
     */
    @PostMapping("/getBoxByTableId/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getBoxByTableId(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String tableId = (String) resMapsRb.get("tableId");
            String deptId = (String) resMapsRb.get("deptId");
            String tableName = (String) resMapsRb.get("tableName");
            String textName = (String) resMapsRb.get("textName");
            List<Map<String, Object>> getBoxByTableId = billDefineManagerIntfsService.getBoxByTableId(tableId,deptId,tableName,textName);
            responseMsg.setResponseBody(getBoxByTableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 自定义页面，根据ID查询具体的值
     * @author gl
     * @param resMapsRb
     * @return
     * @throws Exception
     */
    @PostMapping("/getCustomValue/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getCustomValue(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String value = (String) resMapsRb.get("value");
            String path = (String) resMapsRb.get("path");
            String getCustomValue = billDefineManagerIntfsService.getCustomValue(value,path);
            responseMsg.setResponseBody(getCustomValue);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据userId查找userName
     * @author gl
     * @param resMapsRb
     * @return
     * @throws Exception
     */
    @PostMapping("/getUserNameById/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getUserNameById(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            String getUserNameById = billDefineManagerIntfsService.getUserNameById(id);
            responseMsg.setResponseBody(getUserNameById);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据deptId查找deptName
     * @author gl
     * @param resMapsRb
     * @return
     * @throws Exception
     */
    @PostMapping("/getDeptNameById/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getDeptNameById(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String id = (String) resMapsRb.get("id");
            String getDeptNameById = billDefineManagerIntfsService.getDeptNameById(id);
            responseMsg.setResponseBody(getDeptNameById);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 获取查询条件拼接中文查询语句
     * @param resMapsRb
     * @return
     * @throws Exception String
     */
    @PostMapping("/getSearchString/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getSearchString(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String userId = (String) resMapsRb.get("userId");
            String orgCode = (String) resMapsRb.get("orgCode");
            String nodeId = (String) resMapsRb.get("nodeId");
            String tableId = (String) resMapsRb.get("tableId");
            String json = (String) resMapsRb.get("json");
            String sessionLanguageCode = (String) resMapsRb.get("sessionLanguageCode");
            String getSearchString = billDefineManagerIntfsService.getSearchString(orgId,deptId,sysId,userId,orgCode,nodeId,tableId,json,sessionLanguageCode);
            responseMsg.setResponseBody(getSearchString);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 文件级根据dataId查询归档单位和责任者的id
     *
     * @auth qht
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getCode/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<Map<String, Object>>> getCode(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<Map<String, Object>>> responseMsg = new ResponseMsg<>();
        try {
            String dataId = (String) resMapsRb.get("dataId");
            String tableName = (String) resMapsRb.get("tableName");
            List<Map<String, Object>> getCode = billDefineManagerIntfsService.getCode(dataId,tableName);
            responseMsg.setResponseBody(getCode);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 拆卷下没有子卷修改案卷为不显示
     * @param resMapsRb
     */
    @PostMapping("/updateById/v1")
    @ApiOperation(value = "")
    public ResponseMsg updateById(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            String sqlT = (String) resMapsRb.get("sqlT");
            String anTableId = (String) resMapsRb.get("anTableId");
            billDefineManagerIntfsService.updateById(sqlT,anTableId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     *
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getConfigStr/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getConfigStr(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String sourceId = (String) resMapsRb.get("sourceId");
            String tableId = (String) resMapsRb.get("tableId");
            String recordId = (String) resMapsRb.get("recordId");
            String getConfigStr = billDefineManagerIntfsService.getConfigStr(sourceId,tableId,recordId);
            responseMsg.setResponseBody(getConfigStr);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据tableId和数据id获取页数和下标
     * @return
     * @throws Exception String
     * @throws
     */
    @PostMapping("/getDatasPageNumAndIndexByTableIdRecordId/v1")
    @ApiOperation(value = "")
    public ResponseMsg<List<String>> getDatasPageNumAndIndexByTableIdRecordId(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<List<String>> responseMsg = new ResponseMsg<>();
        try {
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            String sqlWhere = (String) resMapsRb.get("sqlWhere");
            List<String> getDatasPageNumAndIndexByTableIdRecordId = billDefineManagerIntfsService.getDatasPageNumAndIndexByTableIdRecordId(param,sqlWhere);
            responseMsg.setResponseBody(getDatasPageNumAndIndexByTableIdRecordId);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 根据盒号获取存放位置 SanxiaFiles create by zhaoxiaolong
     * @param resMapsRb
     * @return
     */
    @PostMapping("/getExistenceArchivePositionByBoxCode/v1")
    @ApiOperation(value = "")
    public ResponseMsg<String> getExistenceArchivePositionByBoxCode(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        try {
            String orgId = (String) resMapsRb.get("orgId");
            String deptId = (String) resMapsRb.get("deptId");
            String sysId = (String) resMapsRb.get("sysId");
            String nodeId = (String) resMapsRb.get("nodeId");
            String boxCode = (String) resMapsRb.get("boxCode");
            String tableName = (String) resMapsRb.get("tableName");
            String getExistenceArchivePositionByBoxCode = billDefineManagerIntfsService.getExistenceArchivePositionByBoxCode(orgId,deptId,sysId,nodeId,boxCode,tableName);
            responseMsg.setResponseBody(getExistenceArchivePositionByBoxCode);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }




    /**
     * 处理卷内序号方法
     * @param resMapsRb
     * @throws Exception void
     * @throws
     */
    @PostMapping("/saveOtherArchiveInNumByIntfsByParam/v1")
    @ApiOperation(value = "")
    public ResponseMsg saveOtherArchiveInNumByIntfsByParam(@ApiParam(value = "", name = "filebasicmanagerservice")@RequestBody Map<String,Object> resMapsRb) {
        ResponseMsg responseMsg = new ResponseMsg<>();
        try {
            Map<String, Object> param = (Map<String, Object>) resMapsRb.get("param");
            billDefineManagerIntfsService.saveOtherArchiveInNumByIntfsByParam(param);
            responseMsg.setRetCode("200");
        } catch (Exception e) {
            responseMsg.setErrorDesc(e.getMessage());
            responseMsg.setRetCode("201");
            e.printStackTrace();
        }
        return responseMsg;
    }










}
